Page({
  data: {
    activeName:'习惯',
    name:'',
    active:0,
    show:false,
    addTypeList:[
      {
        name:'习惯',
        sign_type:3
      },
      {
        name:'倒数日',
        sign_type:1
      },
      {
        name:'纪念日',
        sign_type:2
      },
    ],
    colorList:['#FF453A','#FF9500','#FFCC00','#34C759','#5AC8FA','#0A84FF','#5856D6','#AF52DE','#92683C']
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },
  onChange(event) {
    this.setData({
      activeName:event.detail.title
    })
  },
  onNameChange(event){

  },
  onClick(){
    this.setData({
      show:true
    })
  }
})